package com.example.server.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.example.server.entity.Customer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 用户(Customer)表数据库访问层
 *
 * @author china.fuyao@outlook.com
 * @since 2020-04-19 14:24:43
 */
public interface CustomerMapper  extends BaseMapper<Customer> {
    /**
     * 员工列表
     * @param page
     * @return
     */
    IPage<Map> staffList(IPage page, @Param("customerName") String customerName, @Param("roleId")  Integer roleId);
}